package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);

    void add(Member member);

    /**
     * 会员数量统计
     *
     * @param list
     * @return
     */
    List<Integer> findMemberCountByMonth(List<String> list);

    List<Integer> findMemberCountBydate(List<String> dateBetween);

    List<Map> getAllBySex();

    List<Map> getAllByAge();

}
